package cn.edu.scau.cmi.ema.repository;

import cn.edu.scau.cmi.ema.domain.NewUser;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;


//应该是动态代理实现类，没有看到实现类
public interface UserRepository extends CrudRepository<NewUser, Long> {

    @Query("select u from NewUser u where u.name =:name")
    public NewUser findUserByName(@Param("name") String name);

//    public User findUserByUserName(String name);

}
